<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Reguli extends CI_Controller {


	public function __construct()
    {
        parent::__construct();
        $this->load->model('film');
        $this->load->model('loginmodel');
    }

    public function index()
	{
		$logat = $this->loginmodel->este_logat();
		$data['titlu'] = 'Star Cinema | Reguli';
		$logat = $this->loginmodel->este_logat();
		$data['logat'] = $logat;
		if($logat)
		{
			$data['nume'] = $this->session->userdata('nume');
			$data['prenume'] = $this->session->userdata('prenume');
		}

		$this->load->view('home/header', $data);
		$this->load->view('reguli/content');
		$this->load->view('home/footer');
	}
}
?>